<%@ page pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='lb' /></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">

            <div class="layui-form-item">
                <form name="totalForm" id="totalForm">

                    <div class="layui-inline">
                        <label class="layui-form-label"><fmt:message key='sjh' /></label>
                        <div class="layui-input-inline">
                            <input type="text" name="member.mobile" placeholder="<fmt:message key='qsrsjh' />" value="<c:if test='${params.member.mobile !=null}'>${params.member.mobile}</c:if>" autocomplete="off" class="layui-input">
                        </div>
                    </div>


                    <div class="layui-inline">
                        <label class="layui-form-label"><fmt:message key='syzt' /></label>
                        <div class="layui-input-inline">
                            <select name="status">
                                <option value="0"><fmt:message key='qxz' /></option>
                                <option value="1"
                                        <c:if test="${params.status == 1}">selected</c:if> ><fmt:message key='wsy' />
                                </option>
                                <option value="2"
                                        <c:if test="${params.status == 2}">selected</c:if> ><fmt:message key='ysy' />
                                </option>
                                <option value="3"
                                        <c:if test="${params.status == 3}">selected</c:if> ><fmt:message key='ygq' />
                                </option>
                            </select>
                        </div>
                    </div>

                    <input type="hidden" name="status" value="${params.status}"/>

                    <div class="layui-inline">
                        <button class="layui-btn layui-btn-sm layuiadmin-btn-list" id="search"><i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> <fmt:message key='ss' /></button>
                    </div>
                </form>
            </div>
        </div>

    </div>

    <div class="layui-card">
        <div class="layui-field-box layui-form">

            <table class="layui-table" lay-size="sm">
                <thead>
                <tr>
                    <th><fmt:message key='sjh' /></th>
                    <th><fmt:message key='nc' /></th>
                    <th><fmt:message key='lqsj' /></th>
                    <th><fmt:message key='syzt' /></th>
                </tr>
                </thead>
                <c:forEach items="${page.result}" var="item" varStatus="status">
                    <tr>
                        <td>${item.member.mobile}</td>
                        <td>${item.member.nickname}</td>
                        <td><fmt:formatDate value="${item.drawTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                        <td>
                            <c:if test="${item.status == 1}"><fmt:message key='wsy' /></c:if>
                            <c:if test="${item.status == 2}"><fmt:message key='ysy' /></c:if>
                            <c:if test="${item.status == 3}"><fmt:message key='ygq' /></c:if>
                        </td>
                    </tr>
                </c:forEach>
            </table>
            <jsp:include page="/commons/page.jsp" flush="true"/>
        </div>
    </div>

</div>

<script>

</script>
</body>
</fmt:bundle>
</html>
